// ----------------------------------------------------------------------------//
// StringQuery.java
// Created by user On 2012-10-30
package com.demo.framework.db.query;

import android.database.Cursor;

import com.demo.framework.db.QueryResultHandler;

/**
 *
 */
public class StringArrayQuery implements QueryResultHandler<String[]> {

	@Override
	public String[] handle(Cursor cursor, int numOfCols) {
		String[] record = new String[numOfCols];
		for (int i = 0; i < numOfCols; ++i) {
			record[i] = cursor.getString(i);
		}
		return record;
	}
}

// ----------------------------------END---------------------------------------//